Dim SearchFlag As Integer ' Used as flag for cancel and other operations.
Private Sub cmdExit_Click()
If cmdExit.Caption = "E&xit" Then
End
Else ' If user chose Cancel, just end Search.
SearchFlag = False
End If
End Sub
Private Sub Command1_Click()
Image1.Fit 4
End Sub
Private Sub Command2_Click()
Image1.Fit 1
End Sub
Private Sub Command3_Click()
Image1.Fit 0
End Sub
Private Sub Command4_Click()
Image1.Fit 3
End Sub
Private Sub DirList_Change()
' Update the file list box to synchronize with the directory list box.
filList.Path = dirList.Path
End Sub
Private Sub DirList_LostFocus()
dirList.Path = dirList.List(dirList.ListIndex)
End Sub
Private Sub DrvList_Change()
On Error GoTo DriveHandler
dirList.Path = drvList.Drive
Exit Sub
DriveHandler:
drvList.Drive = dirList.Path
Exit Sub
End Sub
Private Sub filList_Click()
If InStr(UCase(filList.FileName), ".BMP") > 0 Or InStr(UCase(filList.FileName), ".TIF") Or InStr(UCase(filList.FileName), ".JPG") Or InStr(UCase(filList.FileName), ".PNG") Then